package com.zr.serviceImpl;

import com.zr.dao.CccxDaoljc;
import com.zr.daoImpl.CccxDaoImplljc;
import com.zr.service.CccxServiceljc;

import net.sf.json.JSONObject;

public class CccxServiceImplljc implements CccxServiceljc{
	
	//分页查询课程
	CccxDaoljc cd = new CccxDaoImplljc();
	@Override
	public JSONObject findAllCourseByPageAndRows(int page, int rows) {
		JSONObject j = new JSONObject();
		j.put("total", cd.countAllCourse());
		j.put("rows", cd.getAllCourseByPageAndRows(page, rows));
		return j;
	}

}
